clear;
%parameters
timeLag = 2;
nBatches = 1000;        %number of batches
batchSize = 100;       %size of batches
ship = 4;               %1=shipSimple, 2=shipMarkov, 3=shipSin, 4=shipCurve
bomber = 2;             %1=bomberu, 2=bomberw, 3=bomberm
bombRadius = 0.5;

%store every single outcome, so we can perfrom statistics on it later
hit = zeros(nBatches,1);          %hit(i) is true if the bomber hit the ship in the ith game

for i=1:nBatches
    hit(i) = oneBatch(timeLag,ship, bomber, bombRadius, batchSize);
    i
end

%do some statistics on the obtained data
[muhat, sighat, muci, sigci] = normfit(hit,0.05)
